/***********************************************************************
 * 描述: 
 * File:    cxitagwidget.h
 * Author:  chenanqi@mozihealthcare.cn
 * Date:    2025/10/14 14:23
 * Update:  
 **********************************************************************/

#ifndef COREXI_COMMON_PC_CXITAGWIDGET_H
#define COREXI_COMMON_PC_CXITAGWIDGET_H

#include <QWidget>

class QLabel;
class QToolButton;
class QString;
class CxiTagWidget : public QWidget
{
	Q_OBJECT
public:
	explicit CxiTagWidget(const QString&text, QWidget *parent = nullptr);
	~CxiTagWidget() override = default;

	QString text() const;
	void setText(const QString& text);

signals:
	void tagRemoved(const QString& text);

private:
	QLabel * m_label;
	QToolButton* m_closeBtn;
};


#endif//COREXI_COMMON_PC_CXITAGWIDGET_H
